import request from '@/utils/request'

// 动态计算页面优惠券和商品数据
export async function dynamicPageData(data: any) {
  return request('/api/v2/dynamicPageData', {
    method: 'POST',
    data
  })
}

// 获取活动专题页详情接口
export async function getPageInfo(data: any) {
  return request('/api/v2/getPageInfo', {
    method: 'GET',
    params: data
  })
}

// 保存活动专题页
export async function savePageInfo(data: any) {
  return request('/api/v2/savePageInfo', {
    method: 'POST',
    data
  })
}
